package com.chianghao.rock.admin.system.dictionary.dto;

import javax.validation.constraints.NotNull;

import com.chianghao.core.web.ValidatedGroup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description="字典枚举值信息")
public class DictionaryValueDto {

	
	@NotNull(groups = {ValidatedGroup.Modify.class},message="error:id,not.null")
	@ApiModelProperty("主键")
	private java.lang.Long id;
	
	@NotNull(groups = {ValidatedGroup.Add.class},message="error:name,not.null")
	@ApiModelProperty("枚举名称")
	private java.lang.String name;
	
	@NotNull(groups = {ValidatedGroup.Add.class,ValidatedGroup.Query.class},message="error:parent.code,not.null")
	@ApiModelProperty("字典编号")
	private java.lang.String dictionaryCode;
	
	@NotNull(groups = {ValidatedGroup.Add.class},message="error:value,not.null")
	@ApiModelProperty("枚举值")
	private java.lang.Integer value;

	public java.lang.Long getId() {
		return id;
	}

	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public java.lang.String getName() {
		return name;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}

	public java.lang.String getDictionaryCode() {
		return dictionaryCode;
	}

	public void setDictionaryCode(java.lang.String dictionaryCode) {
		this.dictionaryCode = dictionaryCode;
	}

	public java.lang.Integer getValue() {
		return value;
	}

	public void setValue(java.lang.Integer value) {
		this.value = value;
	}


}
